package action.vo;

import models.Orgn;
import models.User;
import models.Zone;

public class LoginInfo {
	
	private User user;
	private Zone zone;
	
	private Orgn orgn;
	
	private Orgn parent;
	
	private IdName idName;
	
	public LoginInfo() {
		
	}
	public LoginInfo(IdName idName){
		this.idName = idName;
	}
	


	public LoginInfo(User user){
		
		this.user = user;
		this.zone = user.getZone();
		this.orgn = user.getOrgn();
	}



	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Orgn getOrgn() {
		return orgn;
	}

	public void setOrgn(Orgn orgn) {
		this.orgn = orgn;
	}

	public Zone getZone() {
		return zone;
	}

	public void setZone(Zone zone) {
		this.zone = zone;
	}
	
	public IdName getIdName() {
		return idName;
	}

	public void setIdName(IdName idName) {
		this.idName = idName;
	}
	public Orgn getParent() {
		return parent;
	}
	public void setParent(Orgn parent) {
		this.parent = parent;
	}
}
